package com.headStorm.concurrent.manyThread;

import cn.hutool.core.thread.ThreadUtil;
import lombok.extern.slf4j.Slf4j;

import java.util.concurrent.ExecutorService;

/**
 * @author zhangqq
 * @create 2021-12-15 19:09
 **/
@Slf4j
public class HutoolThreadUtil {

    public static void main(String[] args) {

        ExecutorService executorService = ThreadUtil.newExecutor(1);

        ThreadUtil.concurrencyTest(6, new Runnable() {
            @Override
            public void run() {
                log.info("aaa");
            }
        });
    }
}
